//
//  ANOptionsTableViewController.h
//  Ants
//
//  Created by ZHM on 16/7/1.
//  Copyright © 2016年 ZHM. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum {
    ProvincesBackground = 0,
    CitysBackground = 1,
    AreaBackground = 2
}cellBackground;

#define OptionsTableViewCellHeight 35
#define ProvincesBackgroundColor [[UIColor colorWithRed:218.0/255 green:218.0/255 blue:218.0/255 alpha:1] colorWithAlphaComponent:0.85];
#define CitysBackgroundColor [[UIColor colorWithRed:228.0/255 green:228.0/255 blue:228.0/255 alpha:1]colorWithAlphaComponent:0.85];
#define AreaBackgroundColor [[UIColor colorWithRed:238.0/255 green:238.0/255 blue:238.0/255 alpha:1]colorWithAlphaComponent:0.85];

@class ANOptionsTableViewController;
@protocol ANOptionsTableViewControllerDelegate <NSObject>
/**
 * 点击CEll调用
 */
- (void)opitonsTableView:(ANOptionsTableViewController *)opitonsTableView didSelectCellContent:(NSString *)content rom:(NSUInteger)rom;
/**
 * 点击CEll删除按钮
 */
- (void)opitonsTableView:(ANOptionsTableViewController *)opitonsTableView deleCellforRow:(NSInteger)row completion:(void(^)(BOOL succeeded, NSError *error))completion;
@end

@interface ANOptionsTableViewController : UITableViewController
@property (nonatomic, assign) cellBackground CellBackgroundColor;
@property (nonatomic, strong) NSMutableArray *arrayCells;
@property (nonatomic, assign) NSInteger indexRom;
@property (nonatomic, assign) BOOL IsEditRow;
@property (nonatomic, weak) id<ANOptionsTableViewControllerDelegate> delegate;
@end
